<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>samsung - contact us</title>
<!-- HTML Header -->
    <?php include_once  dirname('_FILE_') . '/_partials/html_header.php';?>
  <!-- HTML Header End -->

    <link rel="stylesheet" type="text/css" href="css/contact.css" media="screen" />

 <script >
function contact_submits()
{
	document.getElementById("message_wrapper").style.display = "none";
	document.getElementById("message_wrapper").innerHTML = "";

	var name 				= document.getElementById("name");
	var email 				= document.getElementById("email");
	var last_name 				= document.getElementById("last_name");
	var phone				= document.getElementById("phone");	
	var message				= document.getElementById("message");			

	var errors = "<div class='alert alert-error'>";
	
	if(name.value=="")
	{
		errors+= 'Please provide your name.</div>';
	}
	else if(email.value=="")
	{
		errors+= 'Please provide an email.</div>';
	}	
	else if(last_name.value=="")
	{
		errors+= 'Please provide your last name.</div>';
	}	
	else if(checkcontact(email.value)==false) 
	{
		errors+= 'Please provide a valid  email.</div>';
	}
	else if(phone.value == "")
	{
		errors+= 'Please provide a phone no.</div>';
	}
	else if(message.value=="")
	{
		errors+= 'Please provide a message.</div>';
	}

	if(errors)
	{	
		document.getElementById("message_wrapper").style.display = "block";
		document.getElementById("message_wrapper").innerHTML = errors;
	} 
	else 
	{	
		window.open('mailto:test@example.com');
		document.form.submit();
	}
}
function checkcontact(input)
{
	var pattern1=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
	if(pattern1.test(input))
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
      
</head>
<body>

<div id="wrap">
    
		<!-- Header -->
    <?php include_once  dirname('_FILE_') . '/_partials/header.php';?>
   	<!-- Header End -->
   	
    <!-- Sub Banner -->
    <div id="sub_banner">
    	<div class="container">
        	<div class="text">
        	<h2>COntact Us</h2>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard   			dummy text ever since.</p>
            </div>
        </div>
    </div>
    <!-- Sub Banner End --> 
   
   <!-- Sub Content -->
	<div id="sub_content">
    	<div class="container">
        	<div class="contact">
    			<h2>Enquiry <span>Form</span></h2>	
                <div class="form">
                	
   					      <div class="message_wrapper">
   					      	<div class="alert alert-error">
									    <strong>Opppps!</strong> Username or Password is not correct.
									  </div>
   					      </div>
   					      
                    
                <form name="form" id="form"  method="post" action="javascript:void(0)" onsubmit="return false" >    
                	<div class="field">
                    	<label>First Name:</label>
                        <input name="name" id="name" type="text" />
                    </div>
                    
                    <div class="field">
                    	<label>Last Name:</label>
                        <input name="last_name" id="last_name" type="text" />
                    </div>
                    
                    <div class="field">
                    	<label>Email Address:</label>
                        <input name="email" id="email" type="text" />
                    </div>
                    
                    <div class="field">
                    	<label>Phone No:</label>
                        <input name="phone" id="phone" type="text"/>
                    </div>
                    <!-- 
                    <div class="field">
                    	<label>Website:</label>
                        <input name="name" id="name" type="text" />
                    </div>
                     -->
                    
                    <div class="field field-message">
                    	<label>Message:</label>
                        <textarea name="message" id="message" cols="" rows=""></textarea>
                    </div>
                    <div class="clear"></div>
                   
                    <input class="btn btn-yellow" type="submit" name="submit" value="Submit" onclick="contact_submits();">
                    <div class="clear"></div>
                    </form>
                </div>

                <div class="social">
                	<li class="fb"><a href="javascript:void(0)" class="fb">fcebook/samsung</a></li>
                    <li class="tw"><a href="javascript:void(0)" class="tw">twitter/samsung</a></li>
                    <li class="gp"><a href="javascript:void(0)" class="gp">google+/samsung</a></li>
                    <li class="youtube"><a href="javascript:void(0)" class="youtube">youtube/samsung</a></li>
                </div>
                <div class="clear"></div>
               
                
            </div>
        </div>
    </div>
    
	<div class="clear"></div>
    <!-- Sub Content End -->
    
      <!-- Footer -->
    <?php include_once  dirname('_FILE_') . '/_partials/footer.php';?>
   	<!-- END Footer -->	
    
</div>
</body>
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
</html>